package cn.stylefeng.guns.modular.manager.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 优惠卷
 * </p>
 *
 * @author yumker
 * @since 2021-01-07
 */
@TableName("flow_coupon")
public class FlowCoupon implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "coupon_id", type = IdType.AUTO)
    private Long couponId;

    @TableField("coupon_code")
    private String couponCode;

    @TableField("moneys")
    private BigDecimal moneys;

    @TableField("is_used")
    private Integer isUsed;

    @TableField("is_get")
    private Integer isGet;

    @TableField("member_id")
    private Long memberId;

    @TableField("get_time")
    private Date getTime;

    @TableField("use_time")
    private Date useTime;

    @TableField("order_id")
    private Long orderId;

    @TableField("onprice")
    private BigDecimal onprice;

    @TableField("service_type")
    private Long serviceType;

    @TableField("out_day")
    private Integer outDay;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField("end_time")
    private Date endTime;
    @TableField(exist = false)
    private String serviceName;

    @TableField("coupon_title")
    private String couponTitle;
    @TableField(exist = false)
    private int isOut;

    @TableField("type")
    private Integer type;

    public int getIsOut() {
        return isOut;
    }

    public void setIsOut(int isOut) {
        this.isOut = isOut;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public String getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode;
    }

    public BigDecimal getMoneys() {
        return moneys;
    }

    public void setMoneys(BigDecimal moneys) {
        this.moneys = moneys;
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public Integer getIsGet() {
        return isGet;
    }

    public void setIsGet(Integer isGet) {
        this.isGet = isGet;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Date getGetTime() {
        return getTime;
    }

    public void setGetTime(Date getTime) {
        this.getTime = getTime;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public BigDecimal getOnprice() {
        return onprice;
    }

    public void setOnprice(BigDecimal onprice) {
        this.onprice = onprice;
    }

    public Long getServiceType() {
        return serviceType;
    }

    public void setServiceType(Long serviceType) {
        this.serviceType = serviceType;
    }

    public Integer getOutDay() {
        return outDay;
    }

    public void setOutDay(Integer outDay) {
        this.outDay = outDay;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCouponTitle() {
        return couponTitle;
    }

    public void setCouponTitle(String couponTitle) {
        this.couponTitle = couponTitle;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "FlowCoupon{" +
                "couponId=" + couponId +
                ", couponCode=" + couponCode +
                ", moneys=" + moneys +
                ", isUsed=" + isUsed +
                ", isGet=" + isGet +
                ", memberId=" + memberId +
                ", getTime=" + getTime +
                ", useTime=" + useTime +
                ", orderId=" + orderId +
                ", onprice=" + onprice +
                ", serviceType=" + serviceType +
                ", outDay=" + outDay +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", endTime=" + endTime +
                ", couponTitle=" + couponTitle +
                ", type=" + type +
                "}";
    }
}
